package Servlet.supplier;

import Model.My.DynamicList;
import RssEasy.Core.HttpRequestHelper;
import RssEasy.Core.ServletRequestHelper;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 *
 * @author lipeng
 */
public class dynamic extends ServletRequestHelper {

    @Override
    protected HttpRequestHelper request(HttpServletRequest request, HttpServletResponse response) {
        super.request(request, response);
        try {
            DynamicList dynmic = new DynamicList(pageContext);
            dynmic.request();
            dynmic.select("id,title,shijian").where("myid=?", dynmic.get("myid")).get_page_desc("id");
            out.print(dynmic.toKeyValue());
        } catch (Exception e) {
            out.print("{\"error\":\"" + e.getMessage() + "\"}");
        }
        return this;
    }

}



